﻿package mortal.game.view.active11
{
    import com.mui.controls.*;
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.item.*;
    import mortal.game.view.signUp.util.*;
    import mortal.mvc.core.*;

    public class Active11PanelWord extends GSprite
    {
        protected var _bg:GImageBitmap;

        public function Active11PanelWord()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            var _loc_1:BaseItem = null;
            var _loc_2:GLoadingButton = null;
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gImageBitmap(ImagesConst.Active11PanelWord, 0, 0, this);
            _loc_1 = UIFactory.baseItem(307, 210, 60, 60, this);
            _loc_1.setItemStyle(60, null);
            _loc_1.itemData = new ItemData(120110011);
            pushUIToDisposeVec(_loc_1);
            _loc_1 = UIFactory.baseItem(307, 296, 60, 60, this);
            _loc_1.setItemStyle(60, null);
            _loc_1.itemData = new ItemData(120110012);
            pushUIToDisposeVec(_loc_1);
            _loc_1 = UIFactory.baseItem(391, 389, 60, 60, this);
            _loc_1.setItemStyle(60, null);
            _loc_1.itemData = new ItemData(120110013);
            pushUIToDisposeVec(_loc_1);
            _loc_1 = UIFactory.baseItem(451, 477, 60, 60, this);
            _loc_1.setItemStyle(60, null);
            _loc_1.itemData = new ItemData(120110014);
            pushUIToDisposeVec(_loc_1);
            _loc_2 = UIFactory.gLoadingButton(ResFileConst.Active11GotoWord, 551, 222, 109, 40, this);
            _loc_2.configEventListener(MouseEvent.CLICK, this.onClickBtn);
            pushUIToDisposeVec(_loc_2);
            _loc_2 = UIFactory.gLoadingButton(ResFileConst.Active11GotoWord, 551, 310, 109, 40, this);
            _loc_2.configEventListener(MouseEvent.CLICK, this.onClickBtn);
            pushUIToDisposeVec(_loc_2);
            _loc_2 = UIFactory.gLoadingButton(ResFileConst.Active11GotoWord, 551, 399, 109, 40, this);
            _loc_2.configEventListener(MouseEvent.CLICK, this.onClickBtn);
            pushUIToDisposeVec(_loc_2);
            _loc_2 = UIFactory.gLoadingButton(ResFileConst.Active11GotoWord, 551, 490, 109, 40, this);
            _loc_2.configEventListener(MouseEvent.CLICK, this.onClickBtn);
            pushUIToDisposeVec(_loc_2);
            return;
        }// end function

        protected function onClickBtn(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.SignUpOpenWinAndSwitchTag, SignUpConst.Tag_DoubleEleven_Collect));
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._bg.dispose();
            this._bg = null;
            super.disposeImpl();
            return;
        }// end function

    }
}
